pullUp = {
   priceAchat = 0,
   priceMinCurrent = 0,
   name = "pullUp"
}

-- COURBE EN DENT DE SCIE : Achete au debut + quand c'est interressant, sinon on vend

function pullUp:update(simulation, todo)
   if Pool.currentCycle == 0 then
      local act = (Anal.money) * 3/4 / (Anal.current * 1.15)
      if Calcul:isPossibleBuy(act, Anal.current, (Anal.money) * 3/4) then
	 todo:acheter(simulation, Anal.nb_action)
	 pullUp.priceAchat = Anal.current
      end
      if priceMinCurrent < priceAchat and  Calcul:isPossibleBuy(act, Anal.current, (Anal.money) * 3/4) then
	 todo:acheter(simulation, Anal.nb_action)
      else
	 todo:vendre(simulation, simulation.nb_action)
      end
      pullUp.priceMinCurrent = Anal.current
   end
end
